import request from "@/request/api";

//组织分类树接口
//1.组织分类树查询接口
export function orgTreeData(data) {
  return request({
    url: "/eam-service-system/system/org/queryOrgTree",
    method: "get",
    params: data,
  });
}
//2、数据字典分类树增加节点接口
export function orgTreeAdd(data) {
  return request({
    url: "/eam-service-system/system/org/insertOrg",
    method: "post",
    data: data,
  });
}
//2、数据字典分类树修改节点接口
export function orgTreeEdit(data) {
  return request({
    url: "/eam-service-system/system/org/updateOrg",
    method: "put",
    data: data,
  });
}
//3、数据字典分类树删除节点接口
export function orgTreeDelete(data) {
  return request({
    url: "/eam-service-system/system/org/delete",
    method: "delete",
    params: data,
  });
}
//查询组织列表
export function getOrgList(data) {
  return request({
    url: "/eam-service-system/system/org/queryOrgList",
    method: "get",
    params: data,
  });
}
//查询组织的可用层级
export function getOrgLevel(data) {
  return request({
    url: "/eam-service-system/system/org/getOrgLevel",
    method: "get",
    params: data,
  });
}
// 同步用户组织
export function syncStaffOrg(data) {
  return request({
    url: "/eam-service-system/system/unifyUser/syncOrg",
    method: "get",
    params: data,
  });
}
